package org.example.designPattern.behavioral.chain;

import java.util.List;

/*
* 文件处理器
* */
public abstract class FileProcessor {

    private FileProcessor nextFileProcessor;

    public FileProcessor() {
    }

    public FileProcessor(FileProcessor nextFileProcessor) {
        this.nextFileProcessor = nextFileProcessor;
    }

    public void process(List<String> urls){
        this.execute(urls);
        this.nextFileProcessor.process(urls);
    }

    public abstract void execute(List<String> urls);
}
